#define _CRT_SECURE_NO_WARNINGS 1
#include "queue.h"

void test()
{
	Queue q;
	queueinit(&q);
	queuepush(&q, 1);
	queuepush(&q, 2);
	printf("%d ", queuehead(&q));
	queuepop(&q);
	queuepush(&q, 3);
	queuepush(&q, 4);
	queuepush(&q, 5);
	while (!empotyqueue(&q))
	{

		printf("%d ", queuehead(&q));
		queuepop(&q);
	}
	destroy(&q);

}




int main()
{
	test();


	return 0;

}